import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getPage(params: object) {
    return request({
        url: prefix + '/recruitPost/getPage',
        method: 'get',
        params
    })
}

export function getList() {
    return request({
        url: prefix + '/recruitPost/getList',
        method: 'get'
    })
}

export function createData(data: object) {
    return request({
        url: prefix + '/recruitPost/create',
        method: 'post',
        data
    })
}

export function editData(data: object) {
    return request({
        url: prefix + '/recruitPost/edit',
        method: 'post',
        data
    })
}

export function changeRecruitState(data: object) {
    return request({
        url: prefix + '/recruitPost/changeRecruitState',
        method: 'post',
        data
    })
}
